package com.jlcindia.spring;

public class Hello {
	private A aobj;
	private B bobj;
	public void setAobj(A aobj) {						// Setter Injection
		System.out.println("Setter Method: Hello-setAobj()");
		this.aobj = aobj;
	}
	public Hello(B bobj){								// Constructor Injection
		System.out.println("Constructor: Hello(bobj)");
		this.bobj=bobj;
	}
	public void show(){
		aobj.showA();
		bobj.showB();
	}
}
